Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow draws from Weibull, MvStudentT, LKJCorr and LKJCholeskyCovRV in alternative backends #7685

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ricardoV94
Copy link
Member

@ricardoV94 ricardoV94 commented Feb 19, 2025

This PR converts more RandomVariable Ops to SymbolicRandomVariable (built on top of other RV Ops), which makes them automatically compatible with alternative backends.

Depends on:
pymc-devs/pytensor#1222
pymc-devs/pytensor#1223


📚 Documentation preview 📚: https://pymc--7685.org.readthedocs.build/en/7685/

@ricardoV94 ricardoV94 force-pushed the more_symboic_rvs branch 5 times, most recently from 431666f to 5e57d03 Compare February 25, 2025 08:35
@ricardoV94 ricardoV94 changed the title Make more distributions symbolic so they work in different backends Weibull, MvStudentT, LKJCorr and LKJCholeskyCovRV can now be sampled in alternative backends Feb 27, 2025
@ricardoV94 ricardoV94 changed the title Weibull, MvStudentT, LKJCorr and LKJCholeskyCovRV can now be sampled in alternative backends Allow draws from Weibull, MvStudentT, LKJCorr and LKJCholeskyCovRV in alternative backends Feb 27, 2025
@ricardoV94
Copy link
Member Author

I added an option to forward the decomposition method to the underlying MvNormal. This will require the next PyTensor release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant